					<div class="pagination">
                    	<div class="links">
<?php
	$_SESSION['goback'] = "?".$_SERVER['QUERY_STRING'];
	$_SESSION['currentpage'] = $page;
			if($pager->numPages > 1 && $page >1)
			{
			?>
            	<a href="?<?php echo $_SERVER['QUERY_STRING']?>&page=1">|<</a>
				<a href="?<?php echo $_SERVER['QUERY_STRING']?>&page=<?php echo page-1?>"><</a>
			<?php
			}
			?>

			
			<?php
			for ($j = 1; $j <= $pager->numPages; $j++) 
			{
				if($j==$page)
				{
			?>
			 	
                 <b><?php echo $j?></b>
			<?php
				}
				else
				{
			?>
			 	<a href="?<?php echo $_SERVER['QUERY_STRING']?>&page=<?php echo $j?>"><?php echo $j?></a>
			<?php
				}
			}
			?>
			<?php
			if($pager->numPages > 1 && $page<$pager->numPages )
			{
			?>
            	<a href="?<?php echo $_SERVER['QUERY_STRING']?>&page=<?php echo $page+1?>">></a>
				<a href="?<?php echo $_SERVER['QUERY_STRING']?>&page=<?php echo $pager->numPages?>">>|</a>
			<?php
			}
			?>
                       
                       
                        </div>
                        <div class="results">Trang <?php echo $page?>/<?php echo $pager->numPages?></div>
                    </div>